<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>登录页面</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css" />

    <style>
        body{
            background:url(/static/images/login-bg.jpg);
        }
        #login-form{
            margin:200px auto;
            width:380px;
            border:1px solid #ccc;
            padding:30px;
            background:rgba(255,255,255,0.6);
        }
    </style>
  </head>
  <body>
    
    <form id="login-form" method="POST" action="/login">
        {% csrf_token %}
        <div class="form-group">
          <label for="exampleInputEmail1">账号：</label>
          <input type="text" name="account" class="form-control" id="exampleInputEmail1" placeholder="账号">
        </div>
        <div class="form-group">
          <label for="exampleInputPassword1">密码：</label>
          <input name="password" type="password" class="form-control" id="exampleInputPassword1" placeholder="密码">
        </div>
        <button type="submit" class="btn btn-primary">登录</button>
        <p style="margin-top:20px;" class="alert alert-danger">{{msg}}</p>
      </form>


    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="/static/js/jquery-2.1.4.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>